package com.zheng.作业.mode1Test;

import com.zheng.作业.mode1.Man;
import com.zheng.作业.mode1.Person;
import com.zheng.作业.mode1.Woman;

public class Test10 {
    public static void main(String[] args) {
        Woman w=new Woman();
        Man m=new Man();
        Person[] p= {w, m};
        for (Person person : p) {
            person.pee();
        }
    }
}
